/*
** xwrite.c for  in /home/costa_k//rendulocal/cunix/philosophe/epi-philosophes/srcs
** 
** Made by kevin costa
** Login   <costa_k@epitech.net>
** 
** Started on  Wed May  4 16:55:50 2011 kevin costa
** Last update Wed May  4 17:49:59 2011 kevin costa
*/

#include <unistd.h>
#include <sys/types.h>
#include <stdlib.h>

void		xwrite(int fildes, const void *buf, size_t nbyte)
{
  ssize_t	ret;

  ret = write(fildes, buf, nbyte);
  if (ret == 0)
    exit(EXIT_FAILURE);
}
